* Evaluating Presidential Runoff Elections .
* Anibal Perez-Linan (2006)                .
* Electoral Studies 25: 129-146            .

USE ALL.
COMPUTE filter_$=(fixed ne 1).
FILTER BY filter_$.
EXECUTE .

* Table 1                                  .
MEANS TABLES=first1  BY rule2
  /CELLS MEAN COUNT STDDEV  .

* Table 3                                  .

REGRESSION
  /MISSING LISTWISE
  /STATISTICS COEFF OUTS R ANOVA
  /CRITERIA=PIN(.05) POUT(.10)
  /NOORIGIN
  /DEPENDENT index
  /METHOD=ENTER balotaje runoff invers ln_age ln_enp margin a2000 
  /METHOD=ENTER balotaje runoff invers ln_age ln_enp margin a2000 age_inv  
  /METHOD=ENTER balotaje runoff invers ln_age ln_enp margin a2000 age_inv  
   BOL BRA CHL COL CRI DOM ECU GTM HND MEX NIC PAN PER PRY SLV URY VEN .
PLUM
  index  WITH balotaje runoff invers ln_age ln_enp margin a2000 
  /CRITERIA = CIN(95) DELTA(0) LCONVERGE(0) MXITER(100) MXSTEP(5)
  PCONVERGE(1.0E-6) SINGULAR(1.0E-8)
  /LINK = LOGIT
  /PRINT = FIT PARAMETER SUMMARY .
